package com.qianfeng.openapi.product.dao;

import com.qianfeng.openapi.product.entity.Product;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @Description:
 * @Company: 千锋互联
 * @Author: 李丽婷
 * @Date: 2021/1/6
 * @Time: 上午9:38
 */
public class ProductDao {

   static List<Product> list = new ArrayList<>();

   static{
       for (int i = 1; i < 2000; i++) {
           Product product = new Product();
           product.setId(i);
           product.setCreateDate(new Date());
           product.setTitle("美的电饭锅"+i+"代");
           product.setPrice(39900+i);
           product.setSellPoint("就是好");
           list.add(product);
       }
   }


    public static List<Product> getList() {
        return list;
    }
}
